﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.WebControls.Controles
{
    public partial class WebDropDownTypes : System.Web.UI.WebControls.DropDownList 
    {
        public ECommerce.Reflection.ItemTipo[] tipos;
        public ECommerce.Reflection.ItemTipo[] Tipos
        {
            get { return this.tipos; }
            set { this.tipos = value; }
        }
        public void Load()
        {
            this.Tipos = ECommerce.Reflection.Tipos.GetSystemTipos();
            this.Load(this.Tipos);
        }
        public void Load(ECommerce.Reflection.ItemTipo[] Tipos)
        {
            this.DataSource = Tipos;
            this.DataMember = "Value";
            this.DataTextField = "Name";
            this.DataValueField = "Value";
            this.DataBind();
        }
       
    }
}
